<?php
	switch ($reemplazo["id"]) {
		case "NOMBRE": $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",$object->obtener(strtolower($reemplazo['id'])),$html_page); break;
		case "PRECIO": $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",$object->obtener(strtolower($reemplazo['id'])),$html_page);	break;
		case "FECHA_INICIO": $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",date("d-m-Y",$object->obtener(strtolower($reemplazo['id']))),$html_page);	break;
		case "FECHA_LIMITE": $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",date("d-m-Y",$object->obtener(strtolower($reemplazo['id']))),$html_page);	break;
		case "PROMOCIONES": $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",$object->obtenerPromociones($object->obtener("id")),$html_page);	break;
		case "TR_PROMO": $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",$object->obtenerTrPromo(),$html_page); break;
		case "PUBLICADO":
			if ($object->obtener(strtolower($reemplazo['id'])) == 1) $check = 'checked'; else $check = "";
			$html_page = str_replace("<!--{".$reemplazo["id"]."}-->",$check,$html_page); 
		break;
		default: $html_page = str_replace("<!--{".$reemplazo["id"]."}-->",$reemplazo["texto"],$html_page); break;
	}
?>